import request from '@/utils/request'

// 查询航路图列表
export function listAirrouteattach(query) {
  return request({
    url: '/baseinfo/airrouteattach/list',
    method: 'get',
    params: query
  })
}

// 查询航路图详细
export function getAirrouteattach(attachid) {
  return request({
    url: '/baseinfo/airrouteattach/' + attachid,
    method: 'get'
  })
}

// 新增航路图
export function addAirrouteattach(data) {
  return request({
    url: '/baseinfo/airrouteattach',
    method: 'post',
    data: data
  })
}

// 修改航路图
export function updateAirrouteattach(data) {
  return request({
    url: '/baseinfo/airrouteattach',
    method: 'put',
    data: data
  })
}

// 删除航路图
export function delAirrouteattach(attachid) {
  return request({
    url: '/baseinfo/airrouteattach/' + attachid,
    method: 'delete'
  })
}
